import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Config } from './config';
import { NestExpressApplication } from '@nestjs/platform-express';
import { Logger } from './utils/logger.server';
async function bootstrap() {
  const app = await NestFactory.create<NestExpressApplication>(AppModule, {
    logger: new Logger(),
  });
  app.set('trust proxy', true);
  app.disable('x-powered-by');
  app.setGlobalPrefix(Config.contextPath || '/');
  await app.listen(Config.port);
}
bootstrap();
